package com.four.entity;

import java.util.ArrayList;
import java.util.List;

public class Permission {
    private Integer pId;

    private String pName;

    private Integer pPid;

    private String pUrl;

    private String pIcon;

    public Integer getpId() {
        return pId;
    }

    public void setpId(Integer pId) {
        this.pId = pId;
    }

    public String getpName() {
        return pName;
    }

    public void setpName(String pName) {
        this.pName = pName == null ? null : pName.trim();
    }

    public Integer getpPid() {
        return pPid;
    }

    public void setpPid(Integer pPid) {
        this.pPid = pPid;
    }

    public String getpUrl() {
        return pUrl;
    }

    public void setpUrl(String pUrl) {
        this.pUrl = pUrl == null ? null : pUrl.trim();
    }

    public String getpIcon() {
        return pIcon;
    }

    public void setpIcon(String pIcon) {
        this.pIcon = pIcon == null ? null : pIcon.trim();
    }

    private List<Permission> children=new ArrayList<>();

    public List<Permission> getChildren() {
        return children;
    }

    public void setChildren(List<Permission> children) {
        this.children = children;
    }
}